home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 021a / lcad37.zip / GO.BAT < prev    next >
DOS Batch File  |  1991-10-07  |  953b  |  35 lines

  1. @Echo Off
  2. Rem *=========================[Go.Bat]=================================*
  3. Rem Use this batch file to loop LaunchCAD. You can rename it if you wish
  4. Rem or copy it's contents to another batch file.
  5. Rem LaunchCAD copyright 1988-1991 Mountain Software
  6. Rem *==================================================================*
  7.  
  8. Rem *- Put programs here to run before LaunchCAD and AutoCAD
  9. Rem *- load display drivers, EXTLISP, etc.
  10.  
  11. :Loop
  12.   LC %1
  13.   If ErrorLevel 3 Goto :Error
  14.  
  15. Rem *- If you wish to execute AutoCAD using "Batch" mode then Configure
  16. Rem *- LaunchCAD with a blank "CAD Program Filename"
  17.  
  18.   If ErrorLevel 2 Goto Batch
  19.   Goto Loop_Check
  20. :Batch
  21.   Echo Executing AutoCAD in Batch mode...
  22.   ACAD !BATCH! LC
  23.  
  24. :Loop_Check
  25.   If ErrorLevel 1 GoTo Done
  26.   GoTo :Loop
  27. :Done
  28.  
  29. Rem *- Put programs here to run after AutoCAD to unload drivers, etc.
  30.  
  31.   GoTo End
  32. :Error
  33.   Echo An ERROR was detected by LaunchCAD
  34. :End
  35.